package edu.gatech.stolen.tea.display.item;

import java.util.ArrayList;

import edu.gatech.stolen.tea.R;
import edu.gatech.stolen.tea.User;
import edu.gatech.stolen.tea.R.id;
import edu.gatech.stolen.tea.R.layout;

import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.HorizontalScrollView;
import android.widget.TextView;

public class ItemPageActivity extends Activity {
	
	public static final String TAG = "Item Page";
	
	private TextView userTextView;
	private ArrayList<String> yourItems;
	private User yourUser;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	Log.v(TAG, "Activity State: onCreate()");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.itempage);
        
       // userTextView = (TextView) findViewById(R.id.tUserTextView_itempage);
        
        //yourUser = ItemManager.getUser();
        
		userTextView.setText(yourUser.getFirstName() + " " + yourUser.getLastName() );
		
    }
    
    private void onAddButtonClicked() {
    	
    	Log.v(TAG, "Login Button Clicked");
    	goToCreateItemPage();
    	
    }
    
    protected void goToCreateItemPage(){
    	
    	Intent i = new Intent(this, CreateItemActivity.class);
    	startActivity(i);
    	
    }
}
